package com.jianying.mapper;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.jianying.base.BaseMapper;
import com.jianying.dataSource.TargetDataSource;
import com.jianying.domain.Currency;

@Repository("currencyMapper")
public class CurrencyMapper extends BaseMapper {

	private static final String NAME_SPACE = "com.jianying.mapper.CurrencyMapper.";
	
	@TargetDataSource(name="ds1")
	public void insertBatch(List<Currency> currencies){
		getSqlSessionTemplate().insert(NAME_SPACE + "insertBatch", currencies);
	}
	
}
